import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';

const group: AppRouteModule = {
  path: '/group',
  name: 'Group',
  component: LAYOUT,
  redirect: '/group/index',
  meta: {
    orderNo: 50,
    icon: 'ion:md-person',
    title: '团队管理',
  },
  children: [
    {
      path: 'index',
      name: 'GroupIndex',
      component: () => import('/@/views/group/index.vue'),
      meta: {
        title: '下级开户管理',
      },
    },
    {
      path: 'table',
      name: 'GroupTable',
      component: () => import('/@/views/group/table.vue'),
      meta: {
        title: '团队业绩明细',
      },
    },
  ],
};

export default group;
